﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="QL_Monhoc.aspx.cs" Inherits="DOAN.Admin.QL_Monhoc" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-right">
        <div class="title_right">
            <p class="fs24 cl2 fi font_time">
                <img src="../Imagine/icon_right_title.png" />Quản lý môn học</p>
        </div>
        <div class="register">
            <div class="register">
                <span class="cl4">
                    <asp:Label ID="lblLoi" runat="server" Text=""></asp:Label></span></div>
            <div class="register mart22">
                <div class="label ">
                    <asp:ImageButton ID="img_refesh" runat="server" ImageUrl="~/Imagine/icon_refresh.png"
                        OnClick="imgRe_Click" Style="height: 22px; width: 22px;" />
                    Refresh
                </div>
                <div class="text_box">
                    <asp:ImageButton ID="Themmon" runat="server" ImageUrl="~/Imagine/icon_add.png" OnClick="imgThem_Click"
                        Style="height: 22px; width: 22px;" />
                    Thêm môn học
                </div>
            </div>
            <div class="register mart22">
                <div class="text_box2">
                    <asp:RadioButtonList runat="server" ID="rd_Ykien" Width="193px" ForeColor="#000"
                        RepeatDirection="Horizontal">
                        <asp:ListItem Text="Theo tên môn" Value="0" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Theo mã môn" Value="1"></asp:ListItem>
                    </asp:RadioButtonList>
                </div>
                <div class="text_box">
                    <asp:TextBox ID="txtTimkiem" runat="server" Width="182px"></asp:TextBox>
                </div>
                <div class="label">
                    <asp:ImageButton ID="imgtk" runat="server" ImageUrl="~/Imagine/input_search.png"
                        OnClick="imgtk_Click" Style="height: 22px" />
                </div>
            </div>
            <div class="register mart22">
                <asp:GridView runat="server" ID="griMonhoc" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
                    AllowPaging="True" OnPageIndexChanging="griMonhoc_PageIndexChanging" OnRowCommand="griMonhoc_RowCommand"
                    CellPadding="4" GridLines="None" Width="679px" ForeColor="#333333">
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <Columns>
                        <asp:TemplateField HeaderText="Mã môn " HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="mamon" Text='<%#DataBinder.Eval(Container.DataItem,"Mamonhoc") %>'>
                                </asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên môn học " HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblTen" Text='<%#DataBinder.Eval(Container.DataItem,"Tenmon") %>'>
                                </asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Số chương " HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSochuon3g" Text='<%#DataBinder.Eval(Container.DataItem,"Sochuong") %>'>
                                </asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sửa" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="img_sua" CommandName="sua" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Mamonhoc") %>'
                                    ImageUrl="~/icon/edit_profile.png" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="img_xoa" CommandName="xoa" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Mamonhoc") %>'
                                    ImageUrl="~/icon/delete_user.png" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </div>
            <asp:Panel ID="pnMon" runat="server" Visible="false">
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="lblMa" runat="server" Text="Mã môn học"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:Label ID="txtmamon" runat="server" Text=""></asp:Label>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="lblTen" runat="server" Text="Tên môn"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:TextBox ID="txtTenmon" runat="server" Width="209px"></asp:TextBox><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập tên môn"
                            ValidationGroup="test" ControlToValidate="txtTenmon" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label4" runat="server" Text="Số chương"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:DropDownList ID="drSochuong1" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="register mart22">
                    <asp:Button ID="btDongy" runat="server" Text="Đồng ý" OnClick="btDongy_Click" ValidationGroup="test" />
                    <asp:Button ID="btLamlai" runat="server" Text="Hủy " OnClick="btLamlai_Click" Width="61px" />
                </div>
            </asp:Panel>
            <asp:Panel ID="pnThem" runat="server" Visible="false">
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label1" runat="server" Text="Mã môn học"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:TextBox ID="txtma" runat="server" Text="" Width="209px"></asp:TextBox><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Nhập mã môn học"
                            ValidationGroup="kt" ControlToValidate="txtma" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label2" runat="server" Text="Tên môn"></asp:Label>
                    </div>
                    <div class="text_box">
                        <asp:TextBox ID="txtmon" runat="server" Width="209px"></asp:TextBox><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Nhập môn học"
                            ValidationGroup="kt" ControlToValidate="txtmon" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="register mart22">
                    <div class="label">
                        <asp:Label ID="Label110" runat="server" Text="Số chương"></asp:Label>
                    </div>
                    <div class="text_box2">
                        <asp:DropDownList ID="drSochuong2" runat="server">
                            <asp:ListItem Selected="True">1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="register mart22">
                    <asp:Button ID="btLuu" runat="server" Text="Lưu" OnClick="btLuu_Click" ValidationGroup="kt" />
                    <asp:Button ID="btHuy" runat="server" Text="Hủy " OnClick="btHuy_Click" Width="61px" />
                </div>
            </asp:Panel>
        </div>
</asp:Content>
